package com.biu.billiards.model.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author xue
 * @since 2023-09-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Coupon extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 优惠卷id
     */
    @TableId(value = "coupon_id", type = IdType.AUTO)
    private Integer couponId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 优惠卷名称
     */
    private String couponName;

    /**
     * 状态 1未使用 0已使用 3失效
     */
    private Integer status;

    /**
     * 价格
     */
    private BigDecimal couponPrice;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 结束时间
     */
    private LocalDateTime endTime;

    /**
     * 优惠卷类型
     */
    private Integer couponType;

    /**
     * 商店名称
     */
    private String shopName;


}
